package com.ctaa.ctaa.serviceimpl;

import com.ctaa.ctaa.dto.Result;
import com.ctaa.ctaa.mapper.AppVersionMapper;
import com.ctaa.ctaa.pojo.AppVersionPojo;
import com.ctaa.ctaa.service.AppVersionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AppVersionServiceImpl implements AppVersionService {

    @Resource
    private AppVersionMapper appVersionMapper;

    @Override
    public Result<AppVersionPojo> searchLastAppVersion(String type) {
        AppVersionPojo lastVersion = appVersionMapper.getLastVersion(type);
        return Result.success("查询成功", lastVersion);
    }
}
